import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

// 按需导出useUserStore
// import { useUserStore } from './modules/user'
// export { useUserStore }
// 以上两行代码和下面这行代码等价 从user模块全部导入并且在全部导出
export * from './modules/user'
export * from './modules/consult'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

export default pinia
